<!DOCTYPE html>
<html>
<!-- head -->
{include file="common/page/head"}
<link rel="stylesheet" href="__app__/admin/view/Slide/editSlide/editSlide.css" />
<body>
<!---------------- 幻灯片列表 ------------------->

<!-- 页头 -->
{include file="common/page/header"}
<!-- 主体 -->
<div class="content container-fluid{if $leftBarScale eq '1'} scale{/if}">
    <div class="row">
        <div class="col-md-2 left-section">
            <!-- 左导航菜单 -->
            {include file="common/page/menu"}

        </div>
        <div class="col-md-10 right-section">
            <!--内容区域-->
            <h3>
                <i class="icon iconfont">{$Think.session.currentMenu.icon}</i>幻灯片编辑
                <div class="operation-div">
                    <a class="btn btn-success" class="addGoods" href="{spUrl c=base_slide a=addSlide}">添加</a>
                </div>
            </h3>
            <div class="inner-section row">
                <div id="content">
                    <form action="#" method="post" id="myForm"  enctype="multipart/form-data">
                        <table class="table table-striped table-hover table-bordered table-base">
                            <tr>
                                <td class="td1"><label><span class="must-tag">*</span>名称</label></td>
                                <td class="td2"><input type="text" class="form-control" id="name" name="name" value="{$slideInfo.name}" placeholder="幻灯片名称"></td>
                                <td class="td3"></td>
                            </tr>

                            <tr>
                                <td class="td1"><label><span class="must-tag">&nbsp;&nbsp;</span>缩略图</label></td>
                                <td class="td2"><img src="../../{$slideInfo.thumb}" height="40"></td>
                                <td class="td3"></td>
                            </tr>

                            <tr>
                                <td><label for="imgurl"><span class="must-tag">&nbsp;&nbsp;</span>图片更新</label></td>
                                <td>
                                    <input type="hidden" name="prevurl" value="{$slideInfo.img_url}">
                                    <!---是否重新上传图片标识 0未更新，1更新图片-->
                                    <input type="hidden" id="imgFlag" name="imgFlag" value="0">
                                    <input class="imgurl form-control" accept="image/*" title="支持jpg、jpeg、gif、png格式，文件小于5M" tabindex="3" type="file" id="imgurl" name="imgurl" size="3">
                                </td>
                                <td>建议尺寸：640px*245px</td>
                            </tr>
                            <tr>
                                <td><label for="url"><span class="must-tag">&nbsp;&nbsp;</span>链接地址</label></td>
                                <td><input type="text" class="form-control" name="url" id="url" value="{$slideInfo.url}" placeholder="形如:http://www.changekeji.com"></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><label><span class="must-tag">&nbsp;&nbsp;</span>打开方式</label></td>
                                <td>
                                    <label> <input type="radio" name="target" value="_self" {if $slideInfo.target eq "_self"}checked{/if}>本页刷新</label>
                                    <label> <input type="radio" name="target" value="_blank" {if $slideInfo.target eq "_blank"}checked{/if}>新开窗口</label>
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><label for="sort"><span class="must-tag">&nbsp;&nbsp;</span>排序系数</label></td>
                                <td><input type="text" class="form-control" name="sort" id="sort" placeholder="排序系数" value="{$slideInfo.sort}"></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>

                                </td>
                                <td>
                                    <input type="hidden" name="id" value="{$slideInfo.id}">
                                   
                                    <button type="button" class="btn btn-success btn-md" id='save'>提交</button>
                                    <a class="btn btn-default btn-md" href="javascript:window.history.go(-1);">返回</a>
                                </td>
                                <td></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- 页脚 -->
{include file="common/page/footer"}

<!-- jsfiles -->
{include file="common/page/jsfiles"}
<!--表单验证插件-->
<script type="text/javascript" src="__app__/admin/view/Slide/editSlide/editSlide.js"></script>
</body>
</html>